package com.prp.keywords_search_statistic;

public class LinkedListNode {

	public LinkedListNode previous;
	public LinkedListNode next;
	public String key;
	public long readCount;

	public LinkedListNode(String key, LinkedListNode next,
			LinkedListNode previous, long hint) {
		this.key = key;
		this.next = next;
		this.previous = previous;
		this.readCount = hint;
	}

	public void setHint(long hint) {
		this.readCount = hint;
	}

	public long getHint() {
		return readCount;
	}

	public String getKey(){
		return key;
	}
	public void increaseCount(int i){
		readCount += i;
	}
	public String toString() {
		return key == null ? "null" : key;
	}
}
